<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue基础</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="div">
    <h1>{{a}}</h1>
    <h1>{{b}}</h1>
    <h1>{{c}}</h1>
    <h1>{{d}}</h1>
    <div v-html="test"></div>
</div>
</body>
<script>
    let data = {
        a: 'sfgawdf',
        b: 'ggesfa',
        c: 234333,
        d: 3333333333,
        test: `<h1><img src="../images/timg.jpeg" alt=""></h1>`,
    };
    let vm = new Vue({
        el: '#div',
        data: data
    });
</script>
</html>